package com.cnswhy.cloud.server.core.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.cnswhy.cloud.common.core.base.entity.SuperEntity;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2021-03-24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "IotTerminalInfoUpdateDTO", description = "")
public class IotTerminalInfoUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 终端编号
     */
    @ApiModelProperty(value = "终端编号")
    @NotEmpty(message = "终端编号不能为空")
    @Length(max = 20, message = "终端编号长度不能超过20")
    private String terminalId;
    /**
     * 0失效 1 生效
     */
    @ApiModelProperty(value = "0失效 1 生效")
    @NotNull(message = "0失效 1 生效不能为空")
    private Integer status;
    /**
     * 终端类型
     */
    @ApiModelProperty(value = "终端类型")
    @NotEmpty(message = "终端类型不能为空")
    @Length(max = 255, message = "终端类型长度不能超过255")
    private String iotType;
    /**
     * 激活状态0 未激活 1 已激活 
     */
    @ApiModelProperty(value = "激活状态0 未激活 1 已激活 ")
    private Integer activeStatus;
    /**
     * 关联服务商
     */
    @ApiModelProperty(value = "关联服务商")
    private Long customerId;
    /**
     * 关联商家
     */
    @ApiModelProperty(value = "关联商家")
    private Long merchantId;
    /**
     * 二维码
     */
    @ApiModelProperty(value = "二维码")
    @Length(max = 255, message = "二维码长度不能超过255")
    private String qrCode;
    /**
     * 批次号
     */
    @ApiModelProperty(value = "批次号")
    @Length(max = 255, message = "批次号长度不能超过255")
    private String batchOrderId;
    /**
     * 配比
     */
    @ApiModelProperty(value = "配比")
    private Long split;
}
